<template>
  <div class="code">
    <el-breadcrumb separator-class="el-icon-arrow-right" style="box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);line-height: 3;padding-left: 1em;">
      <el-breadcrumb-item>营销核验</el-breadcrumb-item>
      <el-breadcrumb-item>二维码核销</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="manle ">
      <div class="boxman" v-if="iste">
        <div class="tac">二维码核销</div>
        <div class="flex">
          <ul>
            <li class="flex">
              <div>二维码识别码：</div>
              <input v-model="formName.input" placeholder="请扫描二维码"></input>
            </li>
          </ul>
           <div style="margin: 30px 0 0 10px;">
             <el-button type="primary" @click="chengping">确认</el-button>
           </div>
        </div>
      </div>
      <div class="boxman1" v-if="!iste">
        <div class="tac">短信码核销</div>
        <ul>
          <li class="flex">
            <div>手机号：</div>
            <input v-model="formName.input" placeholder="请输入手机号"></input>
          </li>
          <li class="flex">
            <div ><span style="letter-spacing: 5px;">券号</span>：</div>
            <input v-model="formName.input1" placeholder="请输入券号"></input>
          </li>
          <li class="flex">
            <div><span style="letter-spacing: 5px;">串码</span>：</div>
            <input v-model="formName.input2" placeholder="请输入短信码"></input>
          </li>
        </ul>
        <div class="btn">
          <el-button type="info" plain  @click="resetForm(formName)">取消</el-button>
          <el-button type="primary">确认</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        iste:true,
        formName:{
          input: '',
          input1: '',
          input2: '',
        }
      }
    },
     methods: {
      resetForm(formName) {
        console.log(formName)
        this.formName = {
          input: '',
          input1: '',
          input2: ''
        }
   console.log(this.formName)
    this.iste = true;
      },
      chengping(){
        this.iste = false;
      }
    }
  }
</script>

<style scoped="scoped">
   .tac{
    font-size: 18px;
    line-height: 60px;
    text-indent: 1em;
  }
  .boxman{
    width: 800px;
    height: 200px;
    margin: 80px auto;
    box-shadow: 0 2px 12px 0 rgba(57, 113, 153);
    border-radius:2px ;
    font-size: 14px;
    color: #606266;
  }
  .boxman ul{
    margin-left: 110px;
    margin-top: 30px;
  }
  .boxman ul li{
    border: solid 1px #d2d4d6;
    width:400px ;
    height: 40px;
    border-radius:4px ;
    line-height: 40px;
    margin-bottom: 15px;
  }
  .boxman ul li>div{
    width: 110px;
    text-align: right;
  }
  .boxman ul li>input{
    height: 100%;
    /* padding:0 10px; */
    border: none;
  }
  .btn{
    text-align: center;
    margin-top: 50px;
  }
  .boxman1{
    width: 800px;
    height: 400px;
    margin: 80px auto;
    box-shadow: 0 2px 12px 0 rgba(57, 113, 153);
    border-radius:2px ;
    font-size: 14px;
    color: #606266;
  }
  .boxman1 ul{
    margin-left: 110px;
    margin-top: 30px;
  }
  .boxman1 ul li{
    border: solid 1px #d2d4d6;
    width:60% ;
    height: 40px;
    border-radius:4px ;
    line-height: 40px;
    margin-bottom: 15px;
  }
  .boxman1 ul li>div{
    width: 80px;
    text-align: right;
  }
  .boxman1 ul li>input{
    width: 100%;
    height: 100%;
    /* padding:0 10px; */
    border: none;
  }
</style>
